From 4853303dd7f87b6932841895ad54d18531cae20e Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Sat, 9 Jan 2016 11:25:08 +0100 Subject: [PATCH] Adwaita: add vertical margins to headebar entries and separators --- gtk/theme/Adwaita/_common.scss | 4 +++- gtk/theme/Adwaita/gtk-contained-dark.css | 5 +++++ gtk/theme/Adwaita/gtk-contained.css | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index b3093c6fc0..bb22ace09c 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -1287,7 +1287,9 @@ headerbar { } } - // add vertical margins to headerbar buttons to avoid them spanning the whole height + // add vertical margins to headerbar entries, buttons and separators to avoid them spanning the whole height + entry, + separator, button { margin-top: 6px; margin-bottom: 6px; diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css index 6ce7d46cb9..039e063e2f 100644 --- a/gtk/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/theme/Adwaita/gtk-contained-dark.css @@ -1927,8 +1927,13 @@ headerbar { .titlebar headerbar.default-decoration button.titlebutton { min-height: 26px; padding: 0 5px; } + .titlebar:not(headerbar) entry, .titlebar:not(headerbar) spinbutton, + .titlebar:not(headerbar) separator, .titlebar:not(headerbar) button, .titlebar:not(headerbar) button.titlebutton, + headerbar entry, + headerbar spinbutton, + headerbar separator, headerbar button, headerbar button.titlebutton, headerbar .titlebar button.titlebutton, diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css index d7538fff1d..f39a0b0825 100644 --- a/gtk/theme/Adwaita/gtk-contained.css +++ b/gtk/theme/Adwaita/gtk-contained.css @@ -1931,8 +1931,13 @@ headerbar { .titlebar headerbar.default-decoration button.titlebutton { min-height: 26px; padding: 0 5px; } + .titlebar:not(headerbar) entry, .titlebar:not(headerbar) spinbutton, + .titlebar:not(headerbar) separator, .titlebar:not(headerbar) button, .titlebar:not(headerbar) button.titlebutton, + headerbar entry, + headerbar spinbutton, + headerbar separator, headerbar button, headerbar button.titlebutton, headerbar .titlebar button.titlebutton, -- 2.30.2